﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Globalization;

namespace MobileOSMLib
{
    public class VirtualEarthUrlBuilder : MapUrlBuilder
    {
        private string _server = string.Empty;
        private string _key = string.Empty;
        /// <summary>
        /// The resulting url
        /// </summary>
        public string MapUrl
        {
            get
            {
                return String.Format(CultureInfo.InvariantCulture,
                    "http://r{0}.ortho.tiles.virtualearth.net/tiles/r{1}.png?g=203",
                    3, _coordinate.VEQuadKey);
            }
        }

        /// <summary>
        ///  Default string representation
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return MapUrl;
        }
    }
}
